# Contributor: Tim Yang <tdy@gmx.com>
# Contributor: François Charette <firmicus ατ gmx δοτ net>

pkgname=perl-class-accessor
pkgver=0.51
pkgrel=2
pkgdesc="Automated accessor generation"
arch=(any)
url="https://search.cpan.org/dist/Class-Accessor/"
license=('GPL' 'PerlArtistic')
depends=('perl>=5.10.0')
options=('!emptydirs')
provides=('perl-class-accessor-fast' 'perl-class-accessor-faster')
source=(https://www.cpan.org/authors/id/K/KA/KASEI/Class-Accessor-$pkgver.tar.gz)
sha256sums=('bf12a3e5de5a2c6e8a447b364f4f5a050bf74624c56e315022ae7992ff2f411c')

build() {
  cd "$srcdir/Class-Accessor-$pkgver"
  eval `perl -V:archname`
  perl Makefile.PL INSTALLDIRS=vendor 
  make 
}
package(){
  cd "$srcdir/Class-Accessor-$pkgver"
  make DESTDIR="$pkgdir" install 
  find "$pkgdir" \( -name '.packlist' -o -name '*.pod' \) -delete
}
